using UnityEngine;
using UnityEngine.UI;

namespace MaterialUI
{
	[AddComponentMenu("MaterialUI/Dialogs/Simple Option", 100)]
	public class DialogSimpleOption : DialogClickableOption
	{
		[SerializeField]
		private Text m_ItemText;

		private Graphic m_ItemIcon;

		[SerializeField]
		private MaterialRipple m_ItemRipple;

		private RectTransform m_RectTransform;

		public Text itemText
		{
			get
			{
				return m_ItemText;
			}
			set
			{
				m_ItemText = value;
			}
		}

		public Graphic itemIcon
		{
			get
			{
				return m_ItemIcon;
			}
			set
			{
				m_ItemIcon = value;
			}
		}

		public MaterialRipple itemRipple
		{
			get
			{
				return m_ItemRipple;
			}
			set
			{
				m_ItemRipple = value;
			}
		}

		public RectTransform rectTransform
		{
			get
			{
				if (m_RectTransform == null)
				{
					m_RectTransform = (base.transform as RectTransform);
				}
				return m_RectTransform;
			}
		}
	}
}
